package com.yanqu.road.entity.log.foxcard;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_foxcard_lottery", desc = "狐妖苦情树抽卡",autoSave = true, dataUpload = true, eventName = "red_draw",uploadCk = true)
public class LogFoxCardLottery extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "抽奖体力", dataAttribute ="red_drawuse")
    private int powerCost;
    @FieldTypeAnnotation(desc = "当前体力")
    private int powerNow;
    @FieldTypeAnnotation(desc = "当前树等级")
    private int treeLevel;
    @FieldTypeAnnotation(desc = "当前树经验")
    private int treeExp;
    @FieldTypeAnnotation(desc = "轮次", dataAttribute = "red_round")
    private int lotteryRound;
    @FieldTypeAnnotation(desc = "本轮抽取次数", dataAttribute ="red_drawnums")
    private int inRoundTimes;
    @FieldTypeAnnotation(desc = "抽到的牌id", dataAttribute ="red_drawresult")
    private int cardId;
    @FieldTypeAnnotation(desc = "抽到的点数", dataAttribute ="red_drawgetpoi")
    private int cardPoint;
    @FieldTypeAnnotation(desc = "当前总点数", dataAttribute ="red_drawnowpoi")
    private int totalPoint;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogFoxCardLottery(int activityId, long userId, int powerCost, int powerNow, int treeLevel, int treeExp, int lotteryRound, int inRoundTimes, int cardId, int cardPoint, int totalPoint) {
        this.activityId = activityId;
        this.userId = userId;
        this.powerCost = powerCost;
        this.powerNow = powerNow;
        this.treeLevel = treeLevel;
        this.treeExp = treeExp;
        this.lotteryRound = lotteryRound;
        this.inRoundTimes = inRoundTimes;
        this.cardId = cardId;
        this.cardPoint = cardPoint;
        this.totalPoint = totalPoint;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
